		<!-- ### Sidebar ### -->

		<div id="sidebar">
			
			<ul>
				<?if ($this->inktype->is_logged_in()) {?>
				
					<li><h2>Welcome, <?=$this->session->userdata('display_name');?></h2></li>
					<li>Your Profile</li>
					<li><?=anchor('sessions/logout', 'Log Out');?></li>
					
				<?} else {?>
				
					<li><h2>Member Log In</h2></li>
					
					<li><?=anchor('sessions/login', 'Log In');?></li>
					<li><?=$this->inktype->anchor('register', 'Register');?></li>
				
				<?}?>
			</ul>
				
			<ul>
				<li><h2>Search</h2>
					<?=$this->inktype->form_open_search('search');?>
						<div>
						<input type="text" value="" name="search" id="searchfield" />
						<input type="submit" name="btn_search" id="searchsubmit" value="Search" />
						</div>
					</form>
				</li>
	
	
				<li><h2>Recent Posts</h2>
					<ul>
						<?foreach ($this->mdl_posts->get(array('limit'=>10)) as $post) {?>
						
							<li><?=$this->inktype->anchor('post/' . $post->url_title, $post->title);?></li>
							
						<?}?>
					</ul>
				</li>
			</ul>
		
			<!-- ### Sidebar Left ### -->
			
			<div id="sidebarleft">

			<ul>

			<li><h2>Categories</h2>
				<ul>
					<?foreach ($this->mdl_categories->get() as $category) {?>
					
						<li><?=$this->inktype->anchor('category/' . $category->url_title, $category->category);?></li>
					
					<?}?>
				</ul>
			</li>
	
			</div>

			<!-- ### Sidebar Left End ### -->

			<!-- ### Sidebar Right ### -->

			<div id="sidebarright">
			
				<ul>
			
			  		<li><h2>Blogroll</h2>
						<ul>
							<?foreach ($this->mdl_blogroll->get() as $blogroll) {?>
							
								<li><a href="<?=$blogroll->url;?>"><?=$blogroll->title;?></a></li>
							
							<?}?>
						</ul>
					</li>
	
				</ul>
		
			</div>

			<!-- ### Sidebar Right End ### -->

		</div>
		
		<!-- ### Sidebar End ### -->